<?php

namespace app\common\model;

class SystemProvince extends TimeModel
{

    protected $name = "system_province";

    /**
     * @param string $field
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getProvinceCityAreaByListTree(string $field = "*"): array
    {
        return $this->field($field)
            ->where('status', 1)
            ->order('sort desc,id asc')
            ->select()
            ->toArray();
    }

}